#include "../../include/Socket.h"
#include "../../include/Logger.h"
#include "unistd.h"
#include <iostream>

using namespace std;

int main()
{
    Socket cli_socket;
    cli_socket.CreateClient(8085, "127.0.0.1");
    for (int i = 0; i < 5; ++i)
    {
        std::string str = "hello world!!!";
        cli_socket.Send(str.c_str(), str.size());
        char buf[4096] = {0};
        cli_socket.Recv(buf, 4095);
        DBG_LOG("%s", buf);
        sleep(1);
    }
    while (1)
    {
    }
    return 0;
}
